import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/home",
    name: "home",
    // redirect: "/home",
    component: () => import("../views/home"),
  },
  {
    path: "/Typeof",
    name: "Typeof",
    component: () => import("../views/Typeof"),
  },
  {
    path: "/Shopcar",
    name: "Shopcar",
    component: () => import("../views/Shopcar"),
  },
  {
    path: "/my",
    name: "my",
    component: () => import("../views/my"),
  },
  //所有订单
  {
    path: "/orderdetail",
    name: "orderdetail",
    component: () => import("../components/mydetails/orderdetail"),
  },
  {
    path: "/logindetail",
    name: "logindetail",
    component: () => import("../components/my/logindetail.vue"),
  },
  {
    path: "/Sign",
    name: "Sign",
    component: () => import("../components/Homedetails/Sign.vue"),
  },
  {
    path: "/Whole",
    name: "Whole",
    component: () => import("../components/Homedetails/Whole.vue"),
  },
  {
    path: "/wholedetail",
    name: "wholedetail",
    component: () => import("../components/Homedetails/wholedetail.vue"),
  },
  {
    path: "/Special",
    name: "Special",
    component: () => import("../components/Homedetails/Special.vue"),
  },
  {
    path: "/gotospecialdetail",
    name: "gotospecialdetail",
    component: () => import("../components/Homedetails/gotospecialdetail.vue"),
  },
  {
    path: "/Hits",
    name: "Hits",
    component: () => import("../components/Homedetails/Hits.vue"),
  },
  {
    path: "/hitsdetail",
    name: "hitsdetail",
    component: () => import("../components/Homedetails/hitsdetail"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
